package com.woniu.cms.goods.core.service;

import com.woniu.cms.goods.core.entity.GoodsReturn;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.cms.goods.core.entity.GoodsReturnMaterial;
import com.woniu.common.api.Result;

import java.util.List;

/**
 * <p>
 * 退料单表 服务类
 * </p>
 *
 * @author romantic sheep
 * @since 2022-09-19
 */
public interface IGoodsReturnService extends IService<GoodsReturn> {

    Result addReturn(GoodsReturn goodsReturn, List<GoodsReturnMaterial> list);

    Result deleteReturn(Integer id, Integer status);

    Result updateReturn(GoodsReturn goodsReturn, List<GoodsReturnMaterial> list);

    Result commitReturn(GoodsReturn goodsReturn, List<GoodsReturnMaterial> list);
}
